﻿using System.Collections.Generic;
using System.Collections.ObjectModel;

namespace Joy.Erp.BasicArchives.Core.Filters
{
    /// <summary>
    /// 过滤条件组
    /// </summary>
    public class FilterGroupDto
    {
        /// <summary>
        /// 获取或设置 条件集合
        /// </summary>
        public ICollection<FilterRuleDto> Rules { get; set; } = new Collection<FilterRuleDto>();

        /// <summary>
        /// 获取或设置 条件组集合
        /// </summary>
        public ICollection<FilterGroupDto> Groups { get; set; } = new Collection<FilterGroupDto>();

        /// <summary>
        /// 操作类型
        /// </summary>
        public FilterGroupOperate Operate { get; set; } = FilterGroupOperate.And;
    }
}
